<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<script type="text/javascript">
		$(function(){
			$table=$('#dataType_list');
			$title="资料种类";
			$baseUrl="file/dataType";
			$table.datagrid({
				title:$title,
				fit: true,
				pagination : true,
				pageSize : 50,
				pageList : [ 50, 100, 200 ],
				url:$baseUrl+'/page?sort=sort&order=asc',
				toolbar : [ $.crudgrid.buttons.create,'-',$.crudgrid.buttons.update,'-', $.crudgrid.buttons.remove,'-'],
				dialog:{
					url : $baseUrl,
					name : $title,
					create : {
						width : 400,
						height : 300,
					},
					update : {
						width : 400,
						height : 300,
					},
				}
			});
		})
		
	
	</script>

	<table class="easyui-datagrid"  id="dataType_list" >
		<thead>
			<tr>
				<th width="200" data-options="field:'id',hidden:true">编号</th>
				<th width="200" data-options="field:'name'">名称</th>
				<th width="200" data-options="field:'sort'">排序</th>
			</tr>
		</thead>
	</table>
